#ifndef _USER_H
#define _USER_H
#include"user.h"
#endif

#define MAX_BUF_CHAT 2048
#define MAX_BUF_FILE 1024*1024

typedef enum
{
    LOGIN,
    SIGNUP,
    CHAT,
    QUIT,
    CONTROL
}userMesType;
typedef enum
{
    cd,
    ls,
    _puts,
    _gets,
    _remove,
    pwd,
    noControl
}controlType;
typedef struct mes
{
    controlType cType;
    userMesType mesType;
    User user;
    int allFileSize;
    int contentSize;
    char content[MAX_BUF_FILE];
}userMes;

typedef enum
{
    _CONTROL,
    _FILE,
    _CHAT,
    _TOKEN
}recvType;

typedef enum
{
    YES,
    NO,
    ERROR
}recvStat;

typedef struct fuckingMes
{
    recvStat rStat;
    recvType rType;
    controlType cType;
    int allFileSize;
    int contentSize;
    char content[MAX_BUF_FILE];
 }recvMes; 
